/*
 * hi
 */
//Comment bcefore package statment    
package com.test.basic;

class Student {}
interface Emp{}
public class ABC{
	 public static void main(String args[]){  
		  char c='r';
		  switch(c){
		  case 'x': {System.out.println("x"); break;}
		  default : {System.out.println("none");}
		  case  'r':{System.out.println("r");}
		  }
		// display(500);//one argument   
		 //display(1000,"my","name","is","varargs");//four arguments  
		 }
	
}

class VarargsExample3{  
	   
	 static void display(int num, String... values){  
	  System.out.println("number is "+num);  
	  for(String s:values){  
	   System.out.println(s);  
	  }  
	 }  
	  
	 public static void main(String args[]){  
	  char c='r';
	  switch(c){
	  case 'x': {System.out.println("x"); break;}
	  default : {System.out.println("none");}
	  case  'r':{System.out.println("r");}
	  }
	 display(500);//one argument   
	 display(1000,"my","name","is","varargs");//four arguments  
	 }   
	} 
